﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BS.Domain.RBAC
{
    /// <summary>
    /// 权限表
    /// </summary>
    public class Permissions
    {
        [Key]
        public int PermissionId { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; } = string.Empty;
        /// <summary>
        /// 上下级关系ID
        /// </summary>
        public int PartId { get; set; }
        /// <summary>
        /// 路由
        /// </summary>
        public string Url { get; set; } = string.Empty;
        /// <summary>
        /// 路由名称
        /// </summary>
        public string RoutingName { get; set; } = string.Empty;
        /// <summary>
        /// 组件
        /// </summary>
        public string Component { get; set; } = string.Empty;

        public bool IsDeleted { get; set; } = false;
    }
}
